#pragma once
#include "window_project.h"

// CDocXmlFile document

class CDocXmlFile : public CDocument
{
	DECLARE_DYNCREATE(CDocXmlFile)

public:
	CDocXmlFile();
	virtual ~CDocXmlFile();
#ifndef _WIN32_WCE
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#endif
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	data_xml* m_data_xml;
	virtual BOOL OnNewDocument();
	void AddDataListener(data_xml* aData);
	
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	virtual void OnCloseDocument();
};
